import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { join } from 'path'

export default defineConfig({
  plugins: [vue()],
  root: join(__dirname, 'src/renderer'),
  base: './',
  build: {
    outDir: join(__dirname, 'src/renderer'),
    emptyOutDir: true,
  },
  server: {
    port: 3000,
	cors: false, // 禁用 CORS
	host: '0.0.0.0', // 允许局域网访问
  }
})